package cc.cc4414.cc03.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author cc
 * @since 2019-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_operation_log")
public class OperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 操作描述
     */
    private String description;

    /**
     * 请求方法
     */
    private String method;

    /**
     * 请求路径
     */
    private String url;

    /**
     * 操作时间
     */
    private LocalDateTime time;

    /**
     * 请求参数
     */
    private String param;

    /**
     * 响应结果
     */
    private String result;

    /**
     * 操作者id
     */
    private String userId;

    /**
     * 操作者昵称。冗余字段
     */
    private String nickname;

    /**
     * 操作ip
     */
    private String ip;


    public static final String ID = "id";

    public static final String DESCRIPTION = "description";

    public static final String METHOD = "method";

    public static final String URL = "url";

    public static final String TIME = "time";

    public static final String PARAM = "param";

    public static final String RESULT = "result";

    public static final String USER_ID = "user_id";

    public static final String NICKNAME = "nickname";

    public static final String IP = "ip";

}
